<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <title>公告列表</title>
</head>
<body>
<table class="table table-dark table-hover">
    <tr>
        <td>ID</td>
        <td>公告标题</td>
        <td>公告内容</td>
        <td>发布时间</td>
        <td><a th:href="@{/notice/add}">添加</a></td>
    </tr>

    <tr th:each="notice:${list}">
        <td th:text="${notice.noticeId}"></td>
        <td th:text="${notice.noticeTitle}"></td>
        <td th:text="${notice.noticeContent}"></td>
        <td th:text="${notice.noticeCreateTime}"></td>
        <td><a th:href="@{/notice/delete/(id=${notice.getNoticeId()})}">删除</a></td>
        <td><a th:href="@{/notice/update/(id=${notice.getNoticeId()})}">修改</a></td>
    </tr>
</table>
</body>
</html>
